package com.imd.s9.feign;

import com.imd.base.BaseResponse;
import com.imd.config.FeignConfig;
import com.imd.vo.s5.EntityVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;


/**
 * @author by cuiyulong
 * describe：
 */
@FeignClient(name = "s5obj", configuration = FeignConfig.class)
public interface S5Obj {

    @PostMapping("/obj/actuator/update/{code}/{entityId}")
    public BaseResponse updateEntity(@RequestBody Map map, @PathVariable("code") String code, @PathVariable("entityId") String entityId);
    @PostMapping("/obj/actuator/update/{code}")
    public BaseResponse updateEntitys(@RequestBody EntityVO entity, @PathVariable("code") String code);
}
